<?php

Route::get('/', 'HomeController@index');
Route::get('welcome', 'HomeController@welcome')->name('admin.home.welcome');

Route::match(['get', 'post'], 'login', 'AccountController@login')->name('admin.login');
Route::match(['get', 'post'], 'logout', 'AccountController@logout')->name('admin.logout');

Route::get('payment/logs', 'PaymentController@logs');

Route::group([
    'prefix' => 'scrip'
], function () {
    Route::get('index', 'ScripController@index');
    Route::get('edit', 'ScripController@edit');
    Route::post('update', 'ScripController@update');
});

Route::group([
    'prefix' => 'admin'
], function () {
    Route::get('index', 'AdminController@index');
    Route::get('create', 'AdminController@create');
    Route::post('store', 'AdminController@store');
    Route::get('edit', 'AdminController@edit');
    Route::post('update', 'AdminController@update');
    Route::match(['get', 'post'], 'delete', 'AdminController@delete');
});
